package com.thinkgem.jeesite.modules.university.utils;

import java.util.List;

import com.thinkgem.jeesite.common.utils.SpringContextHolder;
import com.thinkgem.jeesite.modules.university.entity.DisciplineFields;
import com.thinkgem.jeesite.modules.university.entity.XueLiLevel;
import com.thinkgem.jeesite.modules.university.service.DisciplineFieldsService;

public class DisciplineFieldsUtils {
	
	private static DisciplineFieldsService disciplineFieldsService = SpringContextHolder.getBean(DisciplineFieldsService.class);
	
	/**
	 * 通过学历层次查询学科门类集合
	 * @return
	 */
	public static List<DisciplineFields> getDisciplineFieldsListByXueLi(String xueLiLevel){
		DisciplineFields disciplineFields = new DisciplineFields();
		disciplineFields.setXueLiLevel(new XueLiLevel(xueLiLevel));
		return disciplineFieldsService.findList(disciplineFields);
	}
}
